#!/bin/bash

# 使用传递的环境变量 $MOUNTED_PATH，如果未传递则使用默认值 /app/DarkNetAPI
MOUNTED_PATH=${MOUNTED_PATH:-/app/DarkNetAPI}

# 启动 Neo4j
$MOUNTED_PATH/neo4j-community-4.4.12/bin/neo4j console &

# 启动 Redis
cd $MOUNTED_PATH/redis-6.0.9 && redis-server &

# 启动 Gunicorn 服务
cd $MOUNTED_PATH/networking && gunicorn -w 1 -b 0.0.0.0:8084 deploy_model:app &
#cd $MOUNTED_PATH/networking && gunicorn -w 1 -b 0.0.0.0:8080 principal:app
